package com.emontis.notiztapete.pages;

import java.util.List;
import org.apache.tapestry5.annotations.Property;
import org.apache.tapestry5.ioc.annotations.Inject;
import org.hibernate.Session;
import com.emontis.notiztapete.entities.Note;

@SuppressWarnings ("unused")
public class Index
{
  @Inject
  private Session session;

  @Property
  private Note currentNote;

  @SuppressWarnings ("unchecked")
  public List<Note> getNotes ()
  {
    return this.session.createCriteria(Note.class).list();
  }

}
